const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    // 自动打开浏览器
    open: true,
    port: 8080,
    proxy: {
      "/api": {
        target: `http://localhost:8101/`,
        changeOrigin: true,
        pathRewrite: {
          "^/api": "", // /api 替换为空
        },
      },
    },
  },
});
